<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
<head>
<title>学科管理系统</title>   
<s:include value="../common/source.jsp"></s:include>	
</head>
<body>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
	%>
<base href="<%=basePath%>">
  <script type="text/javascript">		
	var message = '<s:property value="flag" />';
	  if(message!=null&&message!="")
	 {
	   		if(message=="success")
			 alert("修改成功!");
	   		else if (message=="errorone") {
	   		alert("确认密码有误!");
	   		} else {
	   		alert("原密码有误!");
	   		}
	   		window.location.href = "<%=basePath%>/leader/ToUpdatePasswordAction.action";	   		
	   }
		
		</script>
<!-- 用户密码修改开始 -->
<div class="body">
 <div class="content ui-sortable">
          <div class="list">
         	 密码修改
          	 </div>
          	 </div>
          	 <br/> 
          	  <br/> 
          	   <hr style="background-color:#cfe1f9;height:1px;"/>
	<form class="sui-form form-horizontal sui-validate" 
		action="leader/UpdatePasswordAction" 
		method="post" 
		enctype="multipart/form-data">
		<div class="bo-mend3">
			<table class="sui-table table-vzebra  table0" >
			<tbody>
			<tr>
				<td>用户名</td>
				<td> 
					<input type="text" 
						class="input-large" 
						value="<s:property value="teacher.user"/>"  
						data-rules="required">
				</td>
			</tr>
			<tr>
				<td>旧密码</td>
				<td> 
					<input type="password" 
						name="oldpassword" 
						class="input-large"
						data-rules="required">
				</td>
			</tr>
			<tr>
				<td>新密码</td>
				<td> 
					<input type="password"  
						class="input-large" 
						id="inputPassword" 
						name="newpassword1" 
						placeholder="" 
						data-rules="required" 
						title="密码">
				</td>
			</tr>
			<tr>
				<td>确认新密码</td>
				<td> 
					<input type="password"  
						class="input-large" 
						id="inputRepassword" 
						name="newpassword2" 
						placeholder="" 
						data-rules="required|match=newpassword1">
				</td>
			</tr>
			</tbody> 
			</table>
		</div>
		<div class="control-group button3">
			<label class="control-label"></label>
			<div class="controls">
				<button type="submit" 
					class="sui-btn btn-primary">提交
				</button>
				<button class="sui-btn" 
					type="reset" >返回
				</button>
			</div>
		</div>
	</form>
</div>
<!--用户密码修改结束 -->        
</body>
</html>
